/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/7/29 16:52
 **/
public class ConCreateBuilderB extends ProductBuilder{

    private Product product = new ProductB();

    @Override
    public void buildPartA() {
        product.addPart("部件X");
    }

    @Override
    public void buildPartB() {
        product.addPart("部件Y");
    }

    @Override
    public Product getProduct() {
        return product;
    }
}
